package day8;

public class gameTest {
    public static void main(String[] args) {
        game g1 =new game("李淳罡",100);
        game g2 =new game("徐凤年",100);
        while(true){
            g1.attack(g2.name);
            if(g1.HP==0) {
                System.out.println(g1.name+"K.O了"+g2.name);
                break;
            }
            g2.attack(g1.name);
            if(g2.HP==0) {
                System.out.println(g2.name+"K.O了"+g1.name);
                break;
            }
        }
    }
}
